<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> 
<form id="pagerForm" method="post" action="${pageContext.request.contextPath}/log/listLog.action">
	<input type="hidden" name="pageRequest" value="1" />
	<input type="hidden" name="pageNum" value="${paginator.pageIndex}" />
	<input type="hidden" name="numPerPage" value="${paginator.pageSize}" />
</form>

<div class="pageHeader">
	<form onsubmit="return navTabSearch(this);" rel="pagerForm" action="${pageContext.request.contextPath}/log/listLog.action" method="post">
	<div class="searchBar">
		<ul class="searchContent">
			<li>
				<label style="text-align: right;">日志内容：</label>
				<input type="text" name="operateLogVO.content" value='<s:property value="operateLogVO.content" />'  class="param"/>
			</li>
			<li >
				<label style="text-align: right;">操作者：</label>
				<input type="text" name="operateLogVO.userName" value='<s:property value="operateLogVO.userName" />'  class="param"/>
			</li>
			<li>
				<label style="text-align: right;">日志类型</label>
				<select name="operateLogVO.type" class="combox">
					<option selected="selected" value="">操作类型</option>
					<option value="1"${operateLogVO.type==1?" selected=true":""}>登陆</option>
					<option value="2"${operateLogVO.type==2?" selected=true":""}>查询</option>
					<option value="3"${operateLogVO.type==3?" selected=true":""}>添加</option>
					<option value="4"${operateLogVO.type==4?" selected=true":""}>修改</option>
                    <option value="5"${operateLogVO.type==5?" selected=true":""}>删除</option>
				</select>
			</li>
		</ul>
		<ul class="searchContent">
			<li style="width: 450px">
				<label style="text-align: right;">操作时间：</label>
				从<input type="text" name="operateLogVO.gtDate" value="${operateLogVO.gtDate}" dateFmt="yyyy-MM-dd HH:mm:ss" class="date param" readonly="readonly" size="19"/>
				到<input type="text" name="operateLogVO.ltDate" value="${operateLogVO.ltDate}"  dateFmt="yyyy-MM-dd HH:mm:ss" class="date param" readonly="readonly" size="19"/>
			</li>
		</ul>
		<div class="subBar">
			<ul>
				<li><div class="buttonActive"><div class="buttonContent"><button type="submit">查询</button></div></div></li>
			</ul>
		</div>
	</div>
	</form>
</div>
<div class="pageContent">
	<table class="table" width="100%" layoutH="137">
		<thead>
			<tr>
				<th width="6%">日志类型</th>
				<th width="30%">日志内容</th>
				<th width="10%">操作时间</th>
				<th width="22%">日志备注</th>
				<th width="5%">操作者</th>
			</tr>
		</thead>
		<tbody>
			<s:iterator value="operateLogList" id="log">
				<tr>
					<td>
                      <s:if test="type==1">登陆</s:if>
                      <s:elseif test="type==2">查询</s:elseif>
                      <s:elseif test="type==3">添加</s:elseif>
                      <s:elseif test="type==4">修改</s:elseif>
                      <s:else><a style="color: red">删除</a></s:else>
                    </td>
					<td><s:property value="content" /></td>
					<td><s:date format="yyyy-MM-dd HH:mm:ss" name="opDate"/></td>
					<td><s:property value="remark" /></td>
					<td><s:property value="userVO.name" /></td>
				</tr>
			</s:iterator>
		</tbody>
	</table>
	<div class="panelBar">
		<div class="pages">
			<span>显示</span>
			<select class="combox" name="numPerPage" onchange="navTabPageBreak({numPerPage:this.value})">
				<option value="15" <c:if test="${paginator.pageSize==15}">selected='selected'</c:if> >15</option>
				<option value="30" <c:if test="${paginator.pageSize==30}">selected='selected'</c:if> >30</option>
				<option value="50" <c:if test="${paginator.pageSize==50}">selected='selected'</c:if> >50</option>
				<option value="100" <c:if test="${paginator.pageSize==100}">selected='selected'</c:if> >100</option>
				<option value="200" <c:if test="${paginator.pageSize==200}">selected='selected'</c:if> >200</option>
			</select>
			<span>条，共${paginator.totalCount}条</span>
		</div>
		
		<div class="pagination" targetType="navTab" totalCount="${paginator.totalCount}" 
			numPerPage="${paginator.pageSize}" pageNumShown="10" currentPage="${paginator.pageIndex}"></div>
	</div>
</div>